package com.zmn.plat.services.impl.extension.serv.category;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zmn.plat.model.entity.extension.serv.category.ExtensionServCategoryAssociation;
import com.zmn.plat.model.entity.extension.serv.category.ExtensionServCategoryAssociationQuery;
import com.zmn.plat.model.vo.extension.serv.category.ExtensionServCategoryAssociationVO;
import com.zmn.plat.persistence.interfaces.extension.serv.category.ExtensionServCategoryAssociationDAO;
import com.zmn.plat.services.interfaces.extension.serv.category.ExtensionServCategoryAssociationService;

@Service
public class ExtensionServCategoryAssociationServiceImpl implements ExtensionServCategoryAssociationService {

    @Resource
    ExtensionServCategoryAssociationDAO extensionServCategoryAssociationDAO;

    @Override
    public ExtensionServCategoryAssociation findByKey(Integer relateId) {
        return extensionServCategoryAssociationDAO.findByKey(relateId);
    }

    @Override
    public Integer findKeyForMax() {
        return extensionServCategoryAssociationDAO.findKeyForMax();
    }

    @Override
    public List<ExtensionServCategoryAssociation> listPageByQuery(ExtensionServCategoryAssociationQuery query) {
        return extensionServCategoryAssociationDAO.listPageByQuery(query);
    }

    @Override
    public List<ExtensionServCategoryAssociation> listByQuery(ExtensionServCategoryAssociationQuery query) {
        return extensionServCategoryAssociationDAO.listByQuery(query);
    }

    @Override
    public List<ExtensionServCategoryAssociation> listAll() {
        return extensionServCategoryAssociationDAO.listAll();
    }

    @Override
    public List<ExtensionServCategoryAssociationVO> listByExtensionServCategoryId(Integer extensionServCategId, Integer extensionCategId, Integer categId) {
        return extensionServCategoryAssociationDAO.listByExtensionServCategoryId(extensionServCategId, extensionCategId, categId);
    }

    @Override
    public Integer countByQuery(ExtensionServCategoryAssociationQuery query) {
        return extensionServCategoryAssociationDAO.countByQuery(query);
    }

    @Override
    public Integer updateByKey(ExtensionServCategoryAssociation extensionServCategoryAssociation) {
        return extensionServCategoryAssociationDAO.updateByKey(extensionServCategoryAssociation);
    }

    @Override
    public Integer insert(ExtensionServCategoryAssociation extensionServCategoryAssociation) {
        return extensionServCategoryAssociationDAO.insert(extensionServCategoryAssociation);
    }

    @Override
    public Integer insertBatch(List<ExtensionServCategoryAssociation> extensionServCategoryAssociationList) {
        return extensionServCategoryAssociationDAO.insertBatch(extensionServCategoryAssociationList);
    }

    @Override
    public Integer deleteByKey(Integer relateId) {
        return extensionServCategoryAssociationDAO.deleteByKey(relateId);
    }

    @Override
    public Integer deleteByExtensionServCategId(Integer extensionServCategId, Integer extensionCategId) {
        return extensionServCategoryAssociationDAO.deleteByExtensionServCategId(extensionServCategId, extensionCategId);
    }

    @Override
    public Integer deleteByServCategIdAndExtensionCategId(String[] ids) {
        return extensionServCategoryAssociationDAO.deleteByServCategIdAndExtensionCategId(ids);
    }
}